package spring.yongongsystem.service;

import org.apache.ibatis.annotations.Delete;
import spring.yongongsystem.POJO.dto.CategoryPageQueryDTO;
import spring.yongongsystem.POJO.entity.Category;
import spring.yongongsystem.result.PageResult;

public interface CategoryService {
    /**
     * 新增分类
     * @param categories
     */
    void save(Category categories);

    /**
     * 分页查询
     * @param categoryPageQueryDTO
     * @return
     */
    PageResult pageQuery(CategoryPageQueryDTO categoryPageQueryDTO);

    /**
     * 根据id删除分类
     * @param id
     */

    void deleteById(Long id);

    /**
     * 根据id编辑分类
     * @param category
     */
    void update(Category category);
}
